import { BaseWindow } from "../../../../component/window/BaseWindow";
import { ILayer } from "../../../../mvc/interfaces/ILayer";
import { DataProvider } from "../../../../../fl/data/DataProvider";
import { PageTool } from "../../../../common/global/PageTool";
import { Language } from "../../../../../extend/language/Language";
import { Dispatcher } from "../../../../mvc/core/Dispatcher";
import { EventName } from "../../../mvc/EventName";
import { NetDispatcher } from "../../../../mvc/core/NetDispatcher";
import { ServerCommand } from "../../../mvc/ServerCommand";
import { GameConst } from "../../../../component/gconst/GameConst";
import { ItemData } from "../../../resource/info/ItemData";
import { Cache } from "../../../cache/Cache";
import { ListEvent } from "../../../../../fl/events/ListEvent";
import { SelectNumWindow } from "../../common/SelectNumWindow";
import { DataEvent } from "../../../events/DataEvent";
import { HTMLUtil } from "../../../../../com/gengine/utils/HTMLUtil";
import { ItemTooltip } from "../../common/tooltip/ItemTooltip";
import { EquipmentTooltip } from "../../common/tooltip/EquipmentTooltip";
import { GameController } from "../../../mvc/GameController";
import { LayerManager } from "../../../manager/LayerManager";
import { ObjCreate } from "../../common/ObjCreate";
import { GTextFormat } from "../../../../common/GTextFormat";
import { FontUtil } from "../../../../common/font/FontUtil";
import { TilePanel } from "../../equipment/TilePanel";
import { QiCostCellRenderer } from "./QiCostCellRenderer";
import { GlobalStyle } from "../../../../common/global/GlobalStyle";
import { GlobalClass } from "../../../../../com/mui/core/GlobalClass";
import { ImagesConst } from "../../../resource/ImagesConst";
import { MountItemCellRenderer } from "../../mounts/mount/MountItemCellRenderer";
import { PageSelecter } from "../../common/pageSelect/PageSelecter";
import { MsgManager } from "../../../manager/MsgManager";
import { EPlayerItemPosType } from "../../../../../Message/Public/EPlayerItemPosType";
import { Log } from "../../../../../com/gengine/debug/Log";
import { GButton } from "../../../../../com/mui/controls/GButton";
import { GTextFiled } from "../../../../../com/mui/controls/GTextFiled";
import { _EPlayerItemPosTypeBag } from "../../../../../EPlayerItemPosType/_EPlayerItemPosTypeBag";
import { _itemsDict } from "../../../../../this/_itemsDict";
import { _EPlayerItemPosTypeStoneBag } from "../../../../../EPlayerItemPosType/_EPlayerItemPosTypeStoneBag";
import { _itemsStoneDict } from "../../../../../this/_itemsStoneDict";
type int = number;
//class SuitQiWindow
    
    export  class SuitQiWindow extends BaseWindow
    {
        constructor(arg1: ILayer=null)
        {
            super(arg1);
            this._itemsDict = new Map<any, any> /* flash.utils.Dictionary */();
            this._itemsStoneDict = new Map<any, any> /* flash.utils.Dictionary */();
            this._costItemsDataProvider = new DataProvider();
            this._itemsDataProvider = new DataProvider();
            this._pageTool = new PageTool([], 30);
            this._costItemArr = [];
            this.setSize(440, 350);
            this.title = Language.getString(35979);
            this.titleHeight = 28;
            Dispatcher.addEventListener(EventName.SuitSkillAddQiSuccess, this.onSuitSkillAddQiSuccessHandler);
            NetDispatcher.addCmdListener(ServerCommand.SuitSkillAccCommand, this.onSuitSkillAccCommandHandler);
            NetDispatcher.addCmdListener(ServerCommand.BackpackDataChange, this.serverBagDataChangehandler);
            NetDispatcher.addCmdListener(ServerCommand.BackPackItemsChange, this.serverBagDataChangehandler);
            NetDispatcher.addCmdListener(ServerCommand.StonepackDataChange, this.serverBagDataChangehandler);
            NetDispatcher.addCmdListener(ServerCommand.StonepackItemsChange, this.serverBagDataChangehandler);
            return;
        }

        /* internal  */onSuitSkillAccCommandHandler(arg1: int): void
        {
            this._qiTxt.htmlText = arg1 + "/" + GameConst.MaxAccumulation;
            return;
        }

        /* internal  */updateItemList(arg1: Array<any>): void
        {
            var loc4=null;
            var loc7=null;
            var loc8=0;
            this._itemsDataProvider.removeAll();
            var loc1=arg1.length;
            var loc2=this._costItemArr.length;
            var loc3=0;
            while (loc3 < loc1) 
            {
                arg1[loc3].mountEffect = "";
                ++loc3;
            }
            var loc5=0;
            while (loc5 < loc2) 
            {
                loc4 = this._costItemArr[loc5]["itemData"] as ItemData;
                loc8 = 0;
                while (loc8 < loc1) 
                {
                    loc7 = arg1[loc8] as ItemData;
                    if (loc4.uid == loc7.uid) 
                    {
                        loc7.mountEffect = loc7.uid;
                        break;
                    }
                    ++loc8;
                }
                ++loc5;
            }
            var loc6=0;
            while (loc6 < loc1) 
            {
                this._itemsDataProvider.addItem(arg1[loc6]);
                ++loc6;
            }
            this._itemsList.dataProvider = this._itemsDataProvider;
            return;
        }

        /* internal  */initItems(): void
        {
            this._items = Cache.instance.pack.backPackCache.getItemsByJudge(this.isAcc).concat(Cache.instance.pack.stonePackCache.getItemsByJudge(this.isAcc));
            this._pageTool.array = this._items;
            this._pageBar.maxPage = this._pageTool.pagesCount;
            this.onPageChangeHandler(null);
            return;
        }

        /* internal  */isAcc(arg1: ItemData): Boolean
        {
            if (arg1.gasValue > 0) 
            {
                return true;
            }
            return false;
        }

        /* internal  */serverBagDataChangehandler(arg1: Object=null): void
        {
            if (this.isHide == false) 
            {
                this.initItems();
                this.updateCostItem(Cache.instance.pack.backPackCache.getItemsByJudge(this.isAcc).concat(Cache.instance.pack.stonePackCache.getItemsByJudge(this.isAcc)));
            }
            return;
        }

        /* internal  */onPageChangeHandler(arg1: Object /* flash.events.Event */): void
        {
            var loc1=this._pageBar.currentPage;
            this.updateItemList(this._pageTool.getByPageNo(loc1));
            return;
        }

        public updateCostItem(arg1: Array<any>): void
        {
            var loc2=false;
            var loc3=null;
            var loc4=null;
            var loc5=0;
            var loc6=0;
            var loc7=null;
            var loc8=null;
            var loc9=0;
            var loc10=0;
            var loc11=0;
            if (arg1.length == 0) 
            {
                this._costItemArr = [];
                this._costItemsList.dataProvider = new DataProvider(this._costItemArr);
                this.onPageChangeHandler(null);
                return;
            }
            var loc1=[];
            if (arg1.length > 0 && this._costItemArr.length > 0) 
            {
                loc5 = 0;
                while (loc5 < this._costItemArr.length) 
                {
                    loc2 = false;
                    loc3 = this._costItemArr[loc5] as Object;
                    loc6 = 0;
                    while (loc6 < arg1.length) 
                    {
                        loc4 = arg1[loc6];
                        if (loc3["itemData"].uid == loc4.uid && loc3["num"] <= loc4.itemAmount) 
                        {
                            loc2 = true;
                            break;
                        }
                        ++loc6;
                    }
                    if (!loc2) 
                    {
                        loc1.push(loc3);
                    }
                    ++loc5;
                }
                if (loc1.length > 0) 
                {
                    loc10 = 0;
                    while (loc10 < loc1.length) 
                    {
                        loc7 = loc1[loc10]["itemData"] as ItemData;
                        loc11 = 0;
                        while (loc11 < this._costItemArr.length) 
                        {
                            loc8 = this._costItemArr[loc11]["itemData"] as ItemData;
                            loc9 = this._costItemArr[loc11]["num"];
                            if (loc7.uid == loc8.uid) 
                            {
                                this._qiTotal = this._qiTotal - arguments[0].gasValue * arguments[0].itemAmount;
                                this.updateQiTotalTxt(this._qiTotal);
                                this._costItemArr.splice(loc11, 1);
                                break;
                            }
                            ++loc11;
                        }
                        ++loc10;
                    }
                    this._costItemsList.dataProvider = new DataProvider(this._costItemArr);
                    this.onPageChangeHandler(null);
                }
            }
            return;
        }

        /* internal  */onItemClickHandler(arg1: ListEvent): void
        {
            var loc1=arg1.item as ItemData;
            this._dealItemData = loc1;
            this._isDBClick = false;
            flash.utils.setTimeout(this.dealClick, 260, loc1);
            return;
        }

        /* internal  */onItemDbClickHandler(arg1: ListEvent): void
        {
            var loc1=arg1.item as ItemData;
            this._dealItemData = loc1;
            this._isDBClick = true;
            return;
        }

        /* internal  */dealClick(): void
        {
            var loc1=null;
            if (this._isDBClick) 
            {
                if (arguments[0] && this.isInCostItemsDataProvider(arguments[0]) == false) 
                {
                    loc1 = {"itemData": arguments[0], "num": arguments[0].itemAmount};
                    this._costItemArr.push(loc1);
                    this._qiTotal = this._qiTotal + arguments[0].gasValue * arguments[0].itemAmount;
                    this.updateQiTotalTxt(this._qiTotal);
                }
                this._costItemsList.dataProvider = new DataProvider(this._costItemArr);
                this.onPageChangeHandler(null);
            }
            else 
            {
                this.realItemClickHandler(arguments[0]);
            }
            return;
        }

        /* internal  */realItemClickHandler(arg1: ItemData): void
        {
            var loc1=null;
            var loc2=null;
            if (arg1 && this.isInCostItemsDataProvider(arg1) == false) 
            {
                if (arg1.itemAmount > 1) 
                {
                    if (this._selectNumWindow == null) 
                    {
                        this._selectNumWindow = new SelectNumWindow();
                    }
                    this._selectNumWindow.updateByItemData(arg1, this.onSelectNumOkHandler);
                    this._selectNumWindow.show();
                    loc2 = this.localToGlobal(new Object /* flash.geom.Point */(mouseX, mouseY));
                    this._selectNumWindow.x = loc2.x - this._selectNumWindow.btnOK.x;
                    this._selectNumWindow.y = loc2.y - this._selectNumWindow.btnOK.y;
                    return;
                }
                this._qiTotal = this._qiTotal + arg1.gasValue * arg1.itemAmount;
                this.updateQiTotalTxt(this._qiTotal);
                loc1 = {"itemData": arg1, "num": arg1.itemAmount};
                this._costItemArr.push(loc1);
                this._costItemsList.dataProvider = new DataProvider(this._costItemArr);
                this.onPageChangeHandler(null);
            }
            this._costItemsList.dataProvider = new DataProvider(this._costItemArr);
            return;
        }

        /* internal  */selectItem(arg1: ItemData, arg2: Boolean): void
        {
            if (arg1 && this.isInCostItemsDataProvider(arg1) == false) 
            {
                if (arg2) 
                {
                    if (arg1.itemAmount > 1) 
                    {
                        if (this._selectNumWindow == null) 
                        {
                            this._selectNumWindow = new SelectNumWindow(this);
                        }
                        this._selectNumWindow.updateByItemData(arg1, this.onSelectNumOkHandler);
                        this._selectNumWindow.show();
                        return;
                    }
                }
                this._costItemsDataProvider.addItem({"itemData": arg1, "num": arg1.itemAmount});
                this._qiTotal = this._qiTotal + arg1.gasValue * arg1.itemAmount;
                this.updateQiTotalTxt(this._qiTotal);
                Dispatcher.dispatchEvent(new DataEvent(EventName.SuitSkillItemSelect, arg1));
            }
            this._costItemsList.dataProvider = this._costItemsDataProvider;
            return;
        }

        /* internal  */onSelectNumOkHandler(arg1: ItemData, arg2: int): void
        {
            var loc1={"itemData": arg1, "num": arg2};
            this._costItemArr.push(loc1);
            this._qiTotal = this._qiTotal + arg1.gasValue * arg2;
            this.updateQiTotalTxt(this._qiTotal);
            this._costItemsList.dataProvider = new DataProvider(this._costItemArr);
            this.onPageChangeHandler(null);
            return;
        }

        /* internal  */onCostItemClickHander(arg1: ListEvent): void
        {
            var loc5=0;
            var loc6=null;
            var loc1=arg1.item;
            var loc2=loc1["itemData"] as ItemData;
            var loc3=loc1["num"] as int;
            var loc4;
            if ((loc4 = this._costItemArr.length) > 0) 
            {
                loc5 = 0;
                while (loc5 < loc4) 
                {
                    loc6 = this._costItemArr[loc5]["itemData"] as ItemData;
                    if (loc2.uid == loc6.uid) 
                    {
                        this._qiTotal = this._qiTotal - loc2.gasValue * loc3;
                        this.updateQiTotalTxt(this._qiTotal);
                        this._costItemArr.splice(loc5, 1);
                    }
                    ++loc5;
                }
            }
            this._costItemsList.dataProvider = new DataProvider(this._costItemArr);
            this.onPageChangeHandler(null);
            return;
        }

        /* internal  */updateQiTotalTxt(arg1: int): void
        {
            if (this._qiTotal + this._acc > GameConst.MaxAccumulation) 
            {
                this._qiTotalTxt.htmlText = HTMLUtil.addColor(this._qiTotal.toString(), "#ff0000");
            }
            else 
            {
                this._qiTotalTxt.htmlText = HTMLUtil.addColor(this._qiTotal.toString(), "#00ff00");
            }
            return;
        }

        /* internal  */onSuitSkillAddQiSuccessHandler(arg1: DataEvent): void
        {
            this.clearCostList();
            return;
        }

        /* internal  */onSuitSkillItemUnSelectAllHandler(arg1: DataEvent): void
        {
            var loc1=null;
            var loc2=0;
            while (loc2 < this._pageTool.array.length) 
            {
                loc1 = this._pageTool.array[loc2] as ItemData;
                loc1.effectName = null;
                ++loc2;
            }
            return;
        }

        /* internal  */onSetLinkClick(arg1): void
        {
            Dispatcher.dispatchEvent(new DataEvent(EventName.FeedMemoryModuleShow, 2));
            return;
        }

        public /* override */ show(arg1: int=0, arg2: int=0): void
        {
            super.show(arg1, arg2);
            this.initItems();
            ItemTooltip.isShowGas = true;
            EquipmentTooltip.isShowGas = true;
            if (!GameController.feedMemory.view.isHide) 
            {
                LayerManager.windowLayer.tweenCenterWindow(this, GameController.feedMemory.view);
            }
            return;
        }

        public /* override */ hide(): void
        {
            super.hide();
            ItemTooltip.isShowGas = false;
            EquipmentTooltip.isShowGas = false;
            this.onResetClickHandler(null);
            return;
        }

        public updateAccumulation(arg1: int, arg2: int): void
        {
            this._acc = arg1;
            this._qiTxt.text = arg1 + "/" + arg2;
            return;
        }

        protected /* override */ createChildren(): void
        {
            var loc1=null;
            super.createChildren();
            ObjCreate.createTextField(Language.getString(35980), 22, 40, 105, 20, this, new GTextFormat(FontUtil.xingkaiName, 18, 15788607));
            this._qiTxt = ObjCreate.createTextField("320/1000", 85, 42, 105, 20, this, new GTextFormat(FontUtil.songtiName, 14, 15788607, true));
            this._qiTxt.autoSize = flash.text.TextFieldAutoSize.LEFT;
            ObjCreate.createBg(20, 65, 170, 220, this);
            this._costItemsList = new TilePanel();
            this._costItemsList.verticalGap = 0;
            this._costItemsList.columnWidth = 205;
            this._costItemsList.rowHeight = 42;
            this._costItemsList.setSize(183, 212);
            this._costItemsList.setStyle("cellRenderer", QiCostCellRenderer);
            this._costItemsList.addEventListener(ListEvent.ITEM_CLICK, this.onCostItemClickHander);
            this._costItemsList.move(25, 70);
            this.addChild(this._costItemsList);
            ObjCreate.createTextField(Language.getString(35981), 22, 285, 105, 20, this, new GTextFormat(FontUtil.xingkaiName, 18, 15788607));
            this._qiTotalTxt = ObjCreate.createTextField("0", 100, 287, 105, 20, this, new GTextFormat(FontUtil.songtiName, 14, 15788607, true));
            this._qiTotalTxt.autoSize = flash.text.TextFieldAutoSize.LEFT;
            this._resetBtn = ObjCreate.createGButton(Language.getString(71352), 27, 310, 65, 24, this);
            this._resetBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onReadMemoryBtn);
            this._resetBtn.toolTipData = Language.getString(71351);
            this._feedBtn = ObjCreate.createGButton(Language.getString(35983), 105, 310, 65, 24, this);
            this._feedBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onFeedClickHandler);
            ObjCreate.createTextField(Language.getString(35984), 215, 40, 220, 20, this, GlobalStyle.textFormat1);
            ObjCreate.createBg(212, 65, 212, 250, this);
            var loc2=0;
            while (loc2 < 30) 
            {
                loc1 = GlobalClass.getBitmap(ImagesConst.PackItemBg);
                loc1.width = 38;
                loc1.height = 38;
                this.addChild(loc1);
                loc1.x = 217 + loc2 % 5 * 41;
                loc1.y = 70 + Math.floor(loc2 / 5) * 41;
                ++loc2;
            }
            this._itemsList = new TilePanel();
            this._itemsList.verticalGap = 3;
            this._itemsList.columnWidth = 38;
            this._itemsList.rowHeight = 38;
            this._itemsList.setSize(205, 245);
            this._itemsList.setStyle("cellRenderer", MountItemCellRenderer);
            this._itemsList.move(215, 68);
            this._itemsList.mouseEnabled = false;
            this._itemsList.addEventListener(ListEvent.ITEM_CLICK, this.onItemClickHandler);
            this._itemsList.addEventListener(ListEvent.ITEM_DOUBLE_CLICK, this.onItemDbClickHandler);
            this.addChild(this._itemsList);
            this._pageBar = new PageSelecter();
            this._pageBar.mode = PageSelecter.CompleteMode;
            this._pageBar.move(255, 320);
            this._pageBar.addEventListener(flash.events.Event.CHANGE, this.onPageChangeHandler);
            this.addChild(this._pageBar);
            this._setLink = ObjCreate.createGTextField("", 177, 316, 100, 20, this);
            this._setLink.autoSize = flash.text.TextFieldAutoSize.LEFT;
            this._setLink.htmlText = HTMLUtil.addColor("<a href=\'event:\'><u>" + Language.getString(71361) + "</u></a>", GlobalStyle.color2);
            this._setLink.addEventListener(flash.events.TextEvent.LINK, this.onSetLinkClick);
            return;
        }

        protected onReadMemoryBtn(arg1: Object /* flash.events.MouseEvent */): void
        {
            var loc1=null;
            var loc2=0;
            var loc3=null;
            var loc4=false;
            var loc5=0;
            var loc6=false;
            var loc7=0;
            var loc8=null;
            var loc9=0;
            var loc10=0;
            if (Cache.instance.feedMemory.sever) 
            {
                loc1 = Cache.instance.feedMemory.sever.memorys.concat();
                loc2 = 0;
                while (loc2 < this._costItemArr.length) 
                {
                    loc8 = this._costItemArr[loc2]["itemData"] as ItemData;
                    if (loc1.indexOf(loc8.itemCode) > 0) 
                    {
                        loc1.splice(loc1.indexOf(loc8.itemCode), 1);
                    }
                    ++loc2;
                }
                loc3 = [];
                loc5 = 0;
                while (loc5 < this._items.length) 
                {
                    loc4 = false;
                    loc9 = 0;
                    while (loc9 < this._costItemArr.length) 
                    {
                        if (this._items[loc5].uid == this._costItemArr[loc9]["itemData"].uid) 
                        {
                            loc4 = true;
                            break;
                        }
                        ++loc9;
                    }
                    if (!loc4) 
                    {
                        loc3.push(this._items[loc5]);
                    }
                    ++loc5;
                }
                loc6 = false;
                loc7 = 0;
                while (loc7 < loc3.length) 
                {
                    loc10 = 0;
                    while (loc10 < loc1.length) 
                    {
                        if (Cache.instance.feedMemory.isCanFeedByMemory(loc3[loc7], loc1[loc10])) 
                        {
                            this._costItemArr.push({"itemData": loc3[loc7], "num": loc3[loc7].itemAmount});
                            loc6 = true;
                            this._qiTotal = this._qiTotal + loc3[loc7].gasValue * loc3[loc7].itemAmount;
                            this.updateQiTotalTxt(this._qiTotal);
                            break;
                        }
                        ++loc10;
                    }
                    ++loc7;
                }
                if (loc6) 
                {
                    this._costItemsList.dataProvider = new DataProvider(this._costItemArr);
                    this.onPageChangeHandler(null);
                    MsgManager.showRollTipsMsg(Language.getString(71365));
                }
                else 
                {
                    MsgManager.showRollTipsMsg(Language.getString(71364));
                }
            }
            return;
        }

        /* internal  */isInCostItemsDataProvider(arg1: ItemData): Boolean
        {
            var loc1=null;
            var loc2=this._costItemArr.length;
            var loc3=0;
            while (loc3 < loc2) 
            {
                loc1 = this._costItemArr[loc3]["itemData"] as ItemData;
                if (loc1.uid == arg1.uid) 
                {
                    return true;
                }
                ++loc3;
            }
            return false;
        }

        /* internal  */onResetClickHandler(arg1: Object /* flash.events.Event */): void
        {
            Dispatcher.dispatchEvent(new DataEvent(EventName.SuitSkillItemUnSelectAll));
            this.clearCostList();
            return;
        }

        /* internal  */clearCostList(): void
        {
            this._costItemArr = [];
            this._costItemsDataProvider.removeAll();
            this._costItemsList.dataProvider = this._costItemsDataProvider;
            this._qiTotal = 0;
            this._qiTotalTxt.text = "0";
            this.clearItemsDict();
            return;
        }

        /* internal  */clearItemsDict(): void
        {
            var loc1=null;
            var loc2=null;
            var loc3=0;
            var loc4=this._itemsDict;
            for (loc1 in loc4) 
            {
                delete this._itemsDict[loc1];
            }
            loc3 = 0;
            loc4 = this._itemsStoneDict;
            for (loc2 in loc4) 
            {
                delete this._itemsStoneDict[loc2];
            }
            return;
        }

        /* internal  */onFeedClickHandler(arg1: Object /* flash.events.Event */): void
        {
            var loc1=null;
            var loc2=0;
            var loc3=0;
            var loc4=0;
            var loc5=0;
            if (this._costItemArr.length <= 0) 
            {
                MsgManager.showRollTipsMsg(Language.getString(70052));
                return;
            }
            if (this._qiTotal + this._acc > GameConst.MaxAccumulation) 
            {
                MsgManager.showRollTipsMsg(Language.getString(35992));
                return;
            }
            this.clearItemsDict();
            if (this._costItemArr.length > 0) 
            {
                loc3 = 0;
                loc4 = 0;
                loc5 = 0;
                while (loc5 < this._costItemArr.length) 
                {
                    loc1 = this._costItemArr[loc5]["itemData"] as ItemData;
                    loc2 = this._costItemArr[loc5]["num"] as int;
                    if (loc1.posType != EPlayerItemPosType._EPlayerItemPosTypeBag) 
                    {
                        if (loc1.posType != EPlayerItemPosType._EPlayerItemPosTypeStoneBag) 
                        {
                            Log.system("器魂ERROR" + loc1.name + "~" + loc1.uid + "~" + loc1.posType);
                        }
                        else 
                        {
                            this._itemsStoneDict[loc1.uid] = loc2;
                            ++loc4;
                        }
                    }
                    else 
                    {
                        this._itemsDict[loc1.uid] = loc2;
                        ++loc3;
                    }
                    ++loc5;
                }
                if (loc3 > 0) 
                {
                    Dispatcher.dispatchEvent(new DataEvent(EventName.SuitSkillAddQi, {"posType": _EPlayerItemPosTypeBag, "items": _itemsDict}));
                }
                if (loc4 > 0) 
                {
                    Dispatcher.dispatchEvent(new DataEvent(EventName.SuitSkillAddQi, {"posType": _EPlayerItemPosTypeStoneBag, "items": _itemsStoneDict}));
                }
            }
            return;
        }

        /* internal */ /* var */_qiTxt: Object /* flash.text.TextField */;

        /* internal */ /* var */_costItemsList: TilePanel;

        /* internal */ /* var */_qiTotalTxt: Object /* flash.text.TextField */;

        /* internal */ /* var */_resetBtn: GButton;

        /* internal */ /* var */_feedBtn: GButton;

        /* internal */ /* var */_pageBar: PageSelecter;

        /* internal */ /* var */_selectNumWindow: SelectNumWindow;

        /* internal */ /* var */_itemsDict: Map<any, any> /* flash.utils.Dictionary */;

        /* internal */ /* var */_itemsStoneDict: Map<any, any> /* flash.utils.Dictionary */;

        /* internal */ /* var */_costItemsDataProvider: DataProvider;

        /* internal */ /* var */_itemsDataProvider: DataProvider;

        /* internal */ /* var */_pageTool: PageTool;

        /* internal */ /* var */_qiTotal: int;

        /* internal */ /* var */_acc: int;

        /* internal */ /* var */_dealItemData: ItemData;

        /* internal */ /* var */_isDBClick: Boolean;

        /* internal */ /* var */_items: Array<any>;

        /* internal */ /* var */_costItemArr: Array<any>;

        /* internal */ /* var */_setLink: GTextFiled;

        /* internal */ /* var */_itemsList: TilePanel;
    }
